package org.baixin.action.main;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;
import org.baixin.action.BaseAction;
import org.baixin.entity.Resource;

/**
 * 
 * 
 * 
 * 
 * @author slaton.wu@gmail.com
 * @version 1.0
 * @created 2011-6-11 下午08:54:34
 */
@Namespace("/home")
@Results({ @Result(name = "top", location = "home/top.jsp"),
		@Result(name = "center", location = "home/center.jsp"),
		@Result(name = "down", location = "home/down.jsp"),
		@Result(name = "home", location = "home/main.jsp"),
		@Result(name = "left", location = "home/left.jsp") })
public class HomeAction {

	protected static String TOP = "top";
	private static String CENTER = "center";
	private static String DOWN = "down";
	private static String LEFT = "left";

	@Action("/top")
	public String top() {

		return TOP;
	}

	@Action("/center")
	public String center() {

		return CENTER;
	}

	@Action("/down")
	public String down() {

		return DOWN;
	}

	@Action("/left")
	public String left() {

		return LEFT;
	}

	@Action("/main")
	public String main() {

		return "home";
	}
}
